<template>
  <div>
    <hr> B
    <p @click="count+=1">{{count}}点击自增</p>{{}}
  </div>
</template>

<script>
  export default {
    name: "BMyComponent",
    data() {
      return {
        count: 0,
      }
    },
    props:["title"]
  }
</script>
<!-- scoped
 增加 该属性，样式只能在当前显示
 -->
<style scoped>
  p {
    color: blue;
  }
</style>
